package com.xandone.wcdog.pojo;


import com.fasterxml.jackson.annotation.JsonFormat;

import java.io.UnsupportedEncodingException;
import java.net.URLDecoder;
import java.util.Date;

public class VideoBean {
  private String videoId;
  private String videoUserId;
  private String title;
  private String content;
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
  private Date postTime;
  private int artCommentCount;
  private int artLikeCount;
  private String contentHtml;
  private String coverImg;
  private String category;
  private Integer tags;
  private int artCollectCount;

  public String getVideoUserNick() {
    return videoUserNick;
  }

  public void setVideoUserNick(String videoUserNick) {
    this.videoUserNick = videoUserNick;
  }

  public String getVideoUserIcon() {
    return videoUserIcon;
  }

  public void setVideoUserIcon(String videoUserIcon) {
    this.videoUserIcon = videoUserIcon;
  }

  public Date getSelfApprovalTime() {
    return selfApprovalTime;
  }

  public void setSelfApprovalTime(Date selfApprovalTime) {
    this.selfApprovalTime = selfApprovalTime;
  }

  private String videoUserNick;
  private String videoUserIcon;
  private Date selfApprovalTime;

  public VideoBean() {
  }

  public VideoBean(String key,
                  String videoId,
                  String videoUserId,
                  String category,
                  String tags) {
    try {
      this.title = key == null ? null : URLDecoder.decode(key, "utf-8");
      this.videoId = videoId == null ? null : URLDecoder.decode(videoId, "utf-8");
      this.videoUserId= videoUserId == null ? null : URLDecoder.decode(videoUserId, "utf-8");
      this.category = category == null ? null : URLDecoder.decode(category, "utf-8");
    } catch (UnsupportedEncodingException e) {
      e.printStackTrace();
    }

  }


  public String getVideoId() {
    return videoId;
  }

  public void setVideoId(String videoId) {
    this.videoId = videoId;
  }


  public String getVideoUserId() {
    return videoUserId;
  }

  public void setVideoUserId(String videoUserId) {
    this.videoUserId = videoUserId;
  }


  public String getTitle() {
    return title;
  }

  public void setTitle(String title) {
    this.title = title;
  }


  public String getContent() {
    return content;
  }

  public void setContent(String content) {
    this.content = content;
  }

  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
  public Date getPostTime() {
    return postTime;
  }


  public void setPostTime(Date postTime) {
    this.postTime = postTime;
  }


  public long getArtCommentCount() {
    return artCommentCount;
  }

  public void setArtCommentCount(int artCommentCount) {
    this.artCommentCount = artCommentCount;
  }


  public long getArtLikeCount() {
    return artLikeCount;
  }

  public void setArtLikeCount(int artLikeCount) {
    this.artLikeCount = artLikeCount;
  }


  public String getContentHtml() {
    return contentHtml;
  }

  public void setContentHtml(String contentHtml) {
    this.contentHtml = contentHtml;
  }


  public String getCoverImg() {
    return coverImg;
  }

  public void setCoverImg(String coverImg) {
    this.coverImg = coverImg;
  }


  public String getCategory() {
    return category;
  }

  public void setCategory(String category) {
    this.category = category;
  }


  public Integer getTags() {
    return tags;
  }

  public void setTags(Integer tags) {
    this.tags = tags;
  }


  public long getArtCollectCount() {
    return artCollectCount;
  }

  public void setArtCollectCount(int artCollectCount) {
    this.artCollectCount = artCollectCount;
  }

}
